package edu.se.jai.lesson03guess1.model.message;

import edu.se.jai.lesson03guess1.model.MessageType;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * WebSocket统一消息格式
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WebSocketMessage {
    private MessageType type;
    private Object data;
    
    public WebSocketMessage(MessageType type) {
        this.type = type;
    }
}
